Page({

    /**
     * 页面的初始数据
     */
    data: {

    },

    get_wxml(className, callback) {
        wx.createSelectorQuery().selectAll(className).boundingClientRect().exec(callback)
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        var that = this;
        if (this.data.currentTab === 0) {
            return false;
        } else {
            that.setData({
                currentTab: 0,
            })
        }
    },

    suo() {
        wx.navigateTo({
            url: '../query/query',
        })
    },
    goJifen() {
        wx.navigateTo({
            url: '../welfare/welfare/welfare',
        })
    },
    clickTab: function (e) {
        var that = this;
        if (this.data.currentTab === e.target.dataset.current) {
            return false;
        } else {
            that.setData({
                currentTab: e.target.dataset.current,
            })
        }
    }
})